import $http from '@/assets/js/http'

//查询订单列表
export function postOrderList(param) {
    return $http.post('/manage/order/list', {
            state:param.state,
            nickName:param.nickName,
            goodsName:param.goodsName,
            mobile:param.mobile,
            startDate:param.startDate,
            endDate:param.endDate,
            pageIndex: param.pageIndex, 
            pageSize: param.pageSize 
    });
}


//查看订单详情
export function getOrderDetails(id) {
    return $http.get('/manage/order/detail', {
        params:{
            orderId: id,
        }
    });
}

//获取物流公司列表
export function getExpressList() {
    return $http.get('/manage/order/expressList', {
        params:{
         
        }
    });
}

//查询物流信息
export function getExpressInfo(expressNo,expressCode) {
    return $http.get('/manage/order/expressInfo', {
        params:{
            expressNo:expressNo,
            expressCode:expressCode,
        }
    });
}

//提交发货物流信息
export function postSendGoods(param) {
    return $http.post('/manage/order/sendGoods', {
        orderId: param.orderId,
        expressNo: param.expressNo,
        expressName:param.expressName,
        expressCode:param.expressCode,
    });
}
